const vscode = require('vscode');
const { ServersTreeViewProvider } = require('./servers/ServersTreeViewProvider');
const { Configs } = require('./Configs');
const { MirServerMenuTreeViewProvider } = require('./servers/MirServerMenuTreeViewProvider');
const { ColorsViewProvider } = require('./ColorsViewProvider');
const { ColorQuickPicker } = require('./ColorQuickPicker');
const { ColorBlockDecoration } = require('./ColorBlockDecoration');
const { FileNameNotesDecorationProvider } = require('./FileNameNotes');
const { VarsUsedTreeViewProvider } = require('./VarsUsedTreeViewProvider');

/**
 * 
 * @param {vscode.ExtensionContext} context 
 */
function activate(context) {
  const config = new Configs();
  FileNameNotesDecorationProvider.init(context)
  ColorsViewProvider.init(context)
  const servers = ServersTreeViewProvider.initTreeViewItem(context, config.serverFiles);
  MirServerMenuTreeViewProvider.init(context, servers)
  ColorQuickPicker.init(context)
  ColorBlockDecoration.init(context)
  VarsUsedTreeViewProvider.init(context)

}

function deactivate() { }
module.exports = {
  activate,
  deactivate
}